<?php
namespace Sffi\ElementPlus\ElForm;

use Sffi\ElementPlus\base\EntityToArray;

class FormItem {
    use EntityToArray;

    protected string $prop;
    protected string $title;
    protected string $type;
    protected string $key;
    protected string $disable;


    /**
     * @return mixed
     */
    public function getTitle()
    {
        return $this->title;
    }

    /**
     * @param mixed $title
     */
    public function setTitle($title)
    {
        $this->title = $title;
        return $this;
    }

    /**
     * @param mixed $type
     */
    public function setType($type)
    {
        $this->type = $type;
        return $this;
    }

    /**
     * @return string
     */
    public function getKey(): string
    {
        return $this->key;
    }

    /**
     * @param string $key
     */
    public function setKey(string $key): self
    {
        $this->key = $key;
        return $this;
    }
}